﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Share/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<EnglishUI.Models.tbl_user>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<h2>Index</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table>
    <tr>
        <th>
            <%: Html.DisplayNameFor(model => model.Username) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.FullName) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Email) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Password) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Zipcode) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.FacebookID) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.FaceName) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Birthday) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Gender) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Avatar) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.tb_Location.Country) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Address) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.Etoken) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.favourite) %>
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Username) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.FullName) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Email) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Password) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Zipcode) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.FacebookID) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.FaceName) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Birthday) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Gender) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Avatar) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.tb_Location.Country) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Address) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Etoken) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.favourite) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>
